<?
$smarty=new Smarty();
if(!ANTIHACK) die("ANTIHACK...");
include_once("../includes/language_vi.php");
$smarty->assign("nameact","Quản trị viên");
$query = query("select `user`.`id` as `id`,`user`.`username` as username,is_active,`group`.`name` as gname from user,`group` where `user`.`group` = `group`.`id`");
$i=0;
while($r=fetch($query))
{
	if($r["is_active"]==1) $r["is_is_active"] = "<font color='green'>Đã kích hoạt<font>";
		else
			$r["is_is_active"] = "<font color='red'>Đã khóa<font>";
			
	$menu[$i][]=$r;
	$i++;
}

$smarty->assign("users",$menu);
$smarty->display("user.htm");

?>